package com.xiaoran.springboot3.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

//@WebListener
@Slf4j
public class MyServletListener  implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.error("项目开始初始化-----------------------");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.error("项目开始销毁******************************");
    }
}
